/*****************************************************************************
 *
 *                      HUSONG PROPRIETARY INFORMATION
 *
 *          The information contained herein is proprietary to HUSONG
 *           and shall not be reproduced or disclosed in whole or in part
 *                    or used for any design or manufacture
 *              without direct written authorization from HUSONG.
 *
 *            Copyright (c) 2015 by HUSONG.  All rights reserved.
 *
 *****************************************************************************/
package me.send.data.service.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import me.send.data.service.mapper.ActivitySchoolFastfoodOrderMapper;
import me.send.data.service.pojo.ActivitySchoolFastfoodOrder;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author maxmin
 *
 * @date 2015年10月27日 上午11:37:15
 */
@Service
public class ActivitySchoolFastfoodOrderService {
	@Autowired
	ActivitySchoolFastfoodOrderMapper activitySchoolFastfoodOrderMapper;
	
	public int insertActivitSchoolFastfoodOrder(ActivitySchoolFastfoodOrder activitySchoolFastfoodOrder){
		return activitySchoolFastfoodOrderMapper.insertActivitSchoolFastfoodOrder(activitySchoolFastfoodOrder);
	}
	
	public List<ActivitySchoolFastfoodOrder> getActivitySchoolFastfoodOrders(int uerid,String date){
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("userid", uerid);
		params.put("date", date);
		return activitySchoolFastfoodOrderMapper.getActivitySchoolFastfoodOrders(params);
	}
}
